package com.tomdd.handler;

import com.tomdd.constants.WxMessageType;
import com.tomdd.message.WxMessage;
import com.tomdd.message.WxOutMessage;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 文本消息
 *
 * @author zx
 * @date 2025-03-12 12:18
 */
@Component
public class TextMessageHandler extends AbstractMessage{
    @Override
    public WxOutMessage handler(WxMessage wxMessage, Map<String, Object> context) {
        return WxOutMessage.builder()
                .msgType(WxMessageType.IMAGE)
                .fromUser("tom")
                .toUser("DD")
                .content("文本")
                .build();
    }
}
